//
//  TimerViewController.h
//  Timer
//
//  Created by Ashish Tarhalkar on 6/4/11.
//  Copyright 2011 __MyCompanyName__. All rights reserved.
//

#import <UIKit/UIKit.h>

@class SettingsViewController;
@class Settings;

@interface TimerViewController : UIViewController {
	IBOutlet UIButton *buttonStart;
	IBOutlet UIButton *buttonEnd;
	IBOutlet UIButton *buttonSettings;
	IBOutlet UILabel *labelTimer;

	NSTimer *timer;

	Settings *settings;
	int currentTimer;
	
	// Persist timers
	NSUserDefaults *persister;
}

-(IBAction) StartTimer;
-(IBAction) EndTimer;
-(IBAction) OpenSettings;

-(void) StopTimer;
-(void) timerElapsed: (NSTimer*) theTimer;

-(void) CancelAlarms;
-(void) ScheduleAlarmAfterSeconds:(int)seconds;

-(void) ShowMessage:(NSString*) message;
-(void) ShowMessage;

@end

